package org.jallinone.system.java;

import java.io.Serializable;

/**
 * <p>Description: Inner class used to store authorizations for a single functionId/company and insert, edit, delete buttons.</p> <p>Copyright: Copyright (C) 2006 Mauro Carniel</p> <p> </p>
 * @author  Mauro Carniel
 * @version  1.0
 */
public class ButtonCompanyAuthorization implements Serializable {

  private String companyCode;
  private String functionId;
  private boolean insertEnabled; // copy = insert...
  private boolean editEnabled;
  private boolean deleteEnabled;


  public ButtonCompanyAuthorization() {}


  public ButtonCompanyAuthorization(String functionId,String companyCode,boolean insertEnabled,boolean editEnabled,boolean deleteEnabled) {
    this.functionId = functionId;
    this.companyCode = companyCode;
    this.insertEnabled = insertEnabled;
    this.editEnabled = editEnabled;
    this.deleteEnabled = deleteEnabled;
  }
  
  
  /**
 * @return
 * @uml.property  name="deleteEnabled"
 */
public boolean isDeleteEnabled() {
    return deleteEnabled;
  }
  /**
 * @return
 * @uml.property  name="editEnabled"
 */
public boolean isEditEnabled() {
	  return editEnabled;
  }
  /**
 * @return
 * @uml.property  name="functionId"
 */
public String getFunctionId() {
	  return functionId;
  }
  /**
 * @return
 * @uml.property  name="insertEnabled"
 */
public boolean isInsertEnabled() {
	  return insertEnabled;
  }
  /**
 * @param insertEnabled
 * @uml.property  name="insertEnabled"
 */
public void setInsertEnabled(boolean insertEnabled) {
	  this.insertEnabled = insertEnabled;
  }
  /**
 * @param functionId
 * @uml.property  name="functionId"
 */
public void setFunctionId(String functionId) {
	  this.functionId = functionId;
  }
  /**
 * @param editEnabled
 * @uml.property  name="editEnabled"
 */
public void setEditEnabled(boolean editEnabled) {
	  this.editEnabled = editEnabled;
  }
  /**
 * @param deleteEnabled
 * @uml.property  name="deleteEnabled"
 */
public void setDeleteEnabled(boolean deleteEnabled) {
	  this.deleteEnabled = deleteEnabled;
  }
  /**
 * @return
 * @uml.property  name="companyCode"
 */
public String getCompanyCode() {
	  return companyCode;
  }
  /**
 * @param companyCode
 * @uml.property  name="companyCode"
 */
public void setCompanyCode(String companyCode) {
	  this.companyCode = companyCode;
  }



}


